﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ClassProject.DAL;

namespace ClassProject.BAL
{
    class InformationBAL
    {
        private InformationDAL infoDAL = new InformationDAL();

        public InformationBAL()
        {
            
        }
        public int Insert_BAL()
        {
            try
            {
                return infoDAL.Insert();
            }
            catch
            {
                throw;
            }
            finally
            {
                infoDAL = null;
            }
        }

        public int Update_BAL()
        {
            try
            {
                return infoDAL.Update();
            }
            catch
            {
                throw;
            }
            finally
            {
                infoDAL = null;
            }
        }

        public int Delete_BAL()
        {
            try
            {
                return infoDAL.Delete();
            }
            catch
            {
                throw;
            }
            finally
            {
                infoDAL = null;
            }
        }
    }
}
